<?php

namespace App\Models\Stock;

use Illuminate\Database\Eloquent\Model;

class StockAllotOrderSub extends Model
{
    protected $table = 'stock_allot_order_sub';
    public $timestamps = false;
    protected $primaryKey = 'id';
    protected $guarded = ['_token'];



    public function getWeightAttribute($value)
    {
        return $value / 10;
    }
    public function getTotalWeightAttribute($value)
    {
        return $value / 10;
    }


    public function getSubSubOrderAttribute($value)
    {
        return json_decode($value,true);
    }
}
